package com.noreply.demo.yml;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author noreply
 * @description
 * @datetime 2021/10/8 11:05
 */
@RestController
@RequestMapping("/yml")
public class YmlController {
    @Autowired
    private Person person;

    @GetMapping("/person")
    public Object person() {
        System.out.println(person.toString());
        return person.toString();
    }
}
